.class abstract Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;
.source "AbstractParseParamsEvent.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback",
        "<TT;>;"
    }
.end annotation


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field private static final TAG:Ljava/lang/String;


# instance fields
.field final mTargetClass:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class",
            "<TT;>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 32
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 37
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->TAG:Ljava/lang/String;

    return-void
.end method

.method protected constructor <init>(Ljava/lang/Class;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 49
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent<TT;>;"
    .local p1, targetClass:Ljava/lang/Class;,"Ljava/lang/Class<TT;>;"
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;-><init>()V

    .line 50
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->mTargetClass:Ljava/lang/Class;

    .line 51
    return-void
.end method

.method private parseProperties(Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback;)V
    .locals 2
    .parameter "props"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 86
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent<TT;>;"
    .local p2, callback:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback<TT;>;"
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent$1;

    const/16 v1, 0xa

    invoke-direct {v0, p0, v1, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;ILjava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback;)V

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent$1;->executeSequentially()V

    .line 98
    return-void
.end method


# virtual methods
.method final fireEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;[Ljava/lang/Object;)V
    .locals 5
    .parameter "mraidView"
    .parameter "args"

    .prologue
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent<TT;>;"
    const/4 v4, 0x0

    .line 55
    invoke-static {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->checkArgs([Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 56
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->TAG:Ljava/lang/String;

    const-string v3, "Attributes to parse are empty. Skipped."

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 65
    :goto_0
    return-void

    .line 59
    :cond_0
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->setUpEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;[Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 60
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->TAG:Ljava/lang/String;

    const-string v3, "Attributes are invalid for this view state. Skipped."

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 63
    :cond_1
    aget-object v0, p2, v4

    check-cast v0, Ljava/lang/String;

    .line 64
    .local v0, properties:Ljava/lang/String;
    invoke-direct {p0, v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->parseProperties(Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/IPropertiesParsedCallback;)V

    goto :goto_0
.end method

.method protected abstract setUpEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;[Ljava/lang/Object;)Z
.end method
